package so.ifl.vo;

import java.io.Serializable;
import java.util.Date;
/**
 * 学员信息
 * @author simon
 * create at 2011-12-26 下午1:17:35
 * <mailto:liangyuanliu@gmail.com>
 */
public class StudentVo implements Serializable{

	private static final long serialVersionUID = 1L;
	// Fields

	private Date studentApplyDate;
	private String stduentSerialNum;
	private Date studentAcceptDate;
	private String studentNationality;
	private String studentName;
	private String studentCertificateType;
	private String studentCertificateNumber;
	private Integer studentSex;
	private Date studentBirthday;
	private Date studentSkillDate;
	private String studentAddress;
	private String studentResidence;
	private String studentResidenceV;
	private String studentTemporaryResidentialPermit;
	private Date studentTrpActiveDate;
	private String studentContactAddress;
	private String studentPhone;
	private String studentZip;
	private Float studentEntranceFee;
	private String studentProgress;
	private String studentApplyType;
	private String studentApplyDriveType;
	private String studentDriveTypeNow;
	private String studentDriveNowNumber;
	private String studentFileId;
	private Date studentBodyCheckDate;
	private String studentBodyCheckHospital;
	private Float studentHeight;
	private String studuentNote;
	private Date studentConsultDate;
	private String studentEmail;
	private String studentTel;
	private Integer dataStutas;
	private String createUser;      
	private Date createTime;
	private String lastModifyUser;  
	private Date lastModifyTime;
	private String studentNativePlace;
	private String studentLocal;
	private String needToPay;
	
	//primary key 
	private Integer studentId;
	private Integer accoutId;
	private Integer companyId;
	private Integer officeId;
	
	//extend field
	private String officeName;
	private String accountOwner;
	private Float realPay;
	private Integer trpActive;
	private Integer skillActive;
	private Float ownPay;
	
	
	public StudentVo() {
		super();
	}
		
	public StudentVo(Date studentApplyDate, String stduentSerialNum,
			Date studentAcceptDate, String studentNationality,
			String studentName, String studentCertificateType,
			String studentCertificateNumber, Integer studentSex,
			Date studentBirthday, Date studentSkillDate, String studentAddress,
			String studentResidence, String studentResidenceV,
			String studentTemporaryResidentialPermit,
			Date studentTrpActiveDate, String studentContactAddress,
			String studentPhone, String studentZip, Float studentEntranceFee,
			String studentProgress, String studentApplyType,
			String studentApplyDriveType, String studentDriveTypeNow,
			String studentDriveNowNumber, String studentFileId,
			Date studentBodyCheckDate, String studentBodyCheckHospital,
			Float studentHeight, String studuentNote, Date studentConsultDate,
			String studentEmail, String studentTel, Integer dataStutas,
			String createUser, Date createTime, String lastModifyUser,
			Date lastModifyTime, Integer accoutId, Integer companyId,
			Integer officeId, String officeName, String accountOwner,
			Float realPay, Integer trpActive, Integer skillActive, String studentNativePlace,
			String studentLocal, String needToPay) {
		super();
		this.studentApplyDate = studentApplyDate;
		this.stduentSerialNum = stduentSerialNum;
		this.studentAcceptDate = studentAcceptDate;
		this.studentNationality = studentNationality;
		this.studentName = studentName;
		this.studentCertificateType = studentCertificateType;
		this.studentCertificateNumber = studentCertificateNumber;
		this.studentSex = studentSex;
		this.studentBirthday = studentBirthday;
		this.studentSkillDate = studentSkillDate;
		this.studentAddress = studentAddress;
		this.studentResidence = studentResidence;
		this.studentResidenceV = studentResidenceV;
		this.studentTemporaryResidentialPermit = studentTemporaryResidentialPermit;
		this.studentTrpActiveDate = studentTrpActiveDate;
		this.studentContactAddress = studentContactAddress;
		this.studentPhone = studentPhone;
		this.studentZip = studentZip;
		this.studentEntranceFee = studentEntranceFee;
		this.studentProgress = studentProgress;
		this.studentApplyType = studentApplyType;
		this.studentApplyDriveType = studentApplyDriveType;
		this.studentDriveTypeNow = studentDriveTypeNow;
		this.studentDriveNowNumber = studentDriveNowNumber;
		this.studentFileId = studentFileId;
		this.studentBodyCheckDate = studentBodyCheckDate;
		this.studentBodyCheckHospital = studentBodyCheckHospital;
		this.studentHeight = studentHeight;
		this.studuentNote = studuentNote;
		this.studentConsultDate = studentConsultDate;
		this.studentEmail = studentEmail;
		this.studentTel = studentTel;
		this.dataStutas = dataStutas;
		this.createUser = createUser;
		this.createTime = createTime;
		this.lastModifyUser = lastModifyUser;
		this.lastModifyTime = lastModifyTime;
		this.accoutId = accoutId;
		this.companyId = companyId;
		this.officeId = officeId;
		this.officeName = officeName;
		this.accountOwner = accountOwner;
		this.realPay = realPay;
		this.trpActive = trpActive;
		this.skillActive = skillActive;
		this.studentNativePlace = studentNativePlace;
		this.studentLocal = studentLocal;
		this.needToPay = needToPay;
	}



	public Date getStudentApplyDate() {
		return studentApplyDate;
	}
	public void setStudentApplyDate(Date studentApplyDate) {
		this.studentApplyDate = studentApplyDate;
	}
	public String getStduentSerialNum() {
		return stduentSerialNum;
	}
	public void setStduentSerialNum(String stduentSerialNum) {
		this.stduentSerialNum = stduentSerialNum;
	}
	public Date getStudentAcceptDate() {
		return studentAcceptDate;
	}
	public void setStudentAcceptDate(Date studentAcceptDate) {
		this.studentAcceptDate = studentAcceptDate;
	}
	public String getStudentNationality() {
		return studentNationality;
	}
	public void setStudentNationality(String studentNationality) {
		this.studentNationality = studentNationality;
	}
	public String getStudentName() {
		return studentName;
	}
	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}
	public String getStudentCertificateType() {
		return studentCertificateType;
	}
	public void setStudentCertificateType(String studentCertificateType) {
		this.studentCertificateType = studentCertificateType;
	}
	public String getStudentCertificateNumber() {
		return studentCertificateNumber;
	}
	public void setStudentCertificateNumber(String studentCertificateNumber) {
		this.studentCertificateNumber = studentCertificateNumber;
	}
	public Integer getStudentSex() {
		return studentSex;
	}
	public void setStudentSex(Integer studentSex) {
		this.studentSex = studentSex;
	}
	public Date getStudentBirthday() {
		return studentBirthday;
	}
	public void setStudentBirthday(Date studentBirthday) {
		this.studentBirthday = studentBirthday;
	}
	public Date getStudentSkillDate() {
		return studentSkillDate;
	}
	public void setStudentSkillDate(Date studentSkillDate) {
		this.studentSkillDate = studentSkillDate;
	}
	public String getStudentAddress() {
		return studentAddress;
	}
	public void setStudentAddress(String studentAddress) {
		this.studentAddress = studentAddress;
	}
	public String getStudentResidence() {
		return studentResidence;
	}
	public void setStudentResidence(String studentResidence) {
		this.studentResidence = studentResidence;
	}
	public String getStudentTemporaryResidentialPermit() {
		return studentTemporaryResidentialPermit;
	}
	public void setStudentTemporaryResidentialPermit(
			String studentTemporaryResidentialPermit) {
		this.studentTemporaryResidentialPermit = studentTemporaryResidentialPermit;
	}
	
	public Date getStudentTrpActiveDate() {
		return studentTrpActiveDate;
	}

	public void setStudentTrpActiveDate(Date studentTrpActiveDate) {
		this.studentTrpActiveDate = studentTrpActiveDate;
	}

	public String getStudentContactAddress() {
		return studentContactAddress;
	}
	public void setStudentContactAddress(String studentContactAddress) {
		this.studentContactAddress = studentContactAddress;
	}
	public String getStudentPhone() {
		return studentPhone;
	}
	public void setStudentPhone(String studentPhone) {
		this.studentPhone = studentPhone;
	}
	public String getStudentZip() {
		return studentZip;
	}
	public void setStudentZip(String studentZip) {
		this.studentZip = studentZip;
	}
	public Float getStudentEntranceFee() {
		return studentEntranceFee;
	}
	public void setStudentEntranceFee(Float studentEntranceFee) {
		this.studentEntranceFee = studentEntranceFee;
	}
	public String getStudentProgress() {
		return studentProgress;
	}
	public void setStudentProgress(String studentProgress) {
		this.studentProgress = studentProgress;
	}
	public String getStudentApplyType() {
		return studentApplyType;
	}
	public void setStudentApplyType(String studentApplyType) {
		this.studentApplyType = studentApplyType;
	}
	public String getStudentApplyDriveType() {
		return studentApplyDriveType;
	}
	public void setStudentApplyDriveType(String studentApplyDriveType) {
		this.studentApplyDriveType = studentApplyDriveType;
	}
	public String getStudentDriveTypeNow() {
		return studentDriveTypeNow;
	}
	public void setStudentDriveTypeNow(String studentDriveTypeNow) {
		this.studentDriveTypeNow = studentDriveTypeNow;
	}
	public String getStudentDriveNowNumber() {
		return studentDriveNowNumber;
	}
	public void setStudentDriveNowNumber(String studentDriveNowNumber) {
		this.studentDriveNowNumber = studentDriveNowNumber;
	}
	public String getStudentFileId() {
		return studentFileId;
	}
	public void setStudentFileId(String studentFileId) {
		this.studentFileId = studentFileId;
	}
	public Date getStudentBodyCheckDate() {
		return studentBodyCheckDate;
	}
	public void setStudentBodyCheckDate(Date studentBodyCheckDate) {
		this.studentBodyCheckDate = studentBodyCheckDate;
	}
	public String getStudentBodyCheckHospital() {
		return studentBodyCheckHospital;
	}
	public void setStudentBodyCheckHospital(String studentBodyCheckHospital) {
		this.studentBodyCheckHospital = studentBodyCheckHospital;
	}
	public Float getStudentHeight() {
		return studentHeight;
	}
	public void setStudentHeight(Float studentHeight) {
		this.studentHeight = studentHeight;
	}
	public String getStuduentNote() {
		return studuentNote;
	}
	public void setStuduentNote(String studuentNote) {
		this.studuentNote = studuentNote;
	}
	public Date getStudentConsultDate() {
		return studentConsultDate;
	}
	public void setStudentConsultDate(Date studentConsultDate) {
		this.studentConsultDate = studentConsultDate;
	}
	public String getStudentEmail() {
		return studentEmail;
	}
	public void setStudentEmail(String studentEmail) {
		this.studentEmail = studentEmail;
	}
	public String getStudentTel() {
		return studentTel;
	}
	public void setStudentTel(String studentTel) {
		this.studentTel = studentTel;
	}
	public Integer getDataStutas() {
		return dataStutas;
	}
	public void setDataStutas(Integer dataStutas) {
		this.dataStutas = dataStutas;
	}
	public String getCreateUser() {
		return createUser;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getLastModifyUser() {
		return lastModifyUser;
	}
	public void setLastModifyUser(String lastModifyUser) {
		this.lastModifyUser = lastModifyUser;
	}
	public Date getLastModifyTime() {
		return lastModifyTime;
	}
	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}
	public Integer getStudentId() {
		return studentId;
	}
	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}
	public Integer getAccoutId() {
		return accoutId;
	}
	public void setAccoutId(Integer accoutId) {
		this.accoutId = accoutId;
	}
	public Integer getCompanyId() {
		return companyId;
	}
	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}
	public Integer getOfficeId() {
		return officeId;
	}
	public void setOfficeId(Integer officeId) {
		this.officeId = officeId;
	}
	public String getOfficeName() {
		return officeName;
	}
	public void setOfficeName(String officeName) {
		this.officeName = officeName;
	}
	public String getAccountOwner() {
		return accountOwner;
	}
	public void setAccountOwner(String accountOwner) {
		this.accountOwner = accountOwner;
	}

	public Float getRealPay() {
		return realPay;
	}

	public void setRealPay(Float realPay) {
		this.realPay = realPay;
		
		if (null != studentEntranceFee && null != realPay && studentEntranceFee > realPay) {
			this.ownPay = studentEntranceFee - realPay;
		}
	}

	public Integer getTrpActive() {
		return trpActive;
	}

	public void setTrpActive(Integer trpActive) {
		this.trpActive = trpActive;
	}

	public Integer getSkillActive() {
		return skillActive;
	}

	public void setSkillActive(Integer skillActive) {
		this.skillActive = skillActive;
	}
	
	public String getStudentResidenceV() {
		return studentResidenceV;
	}

	public void setStudentResidenceV(String studentResidenceV) {
		this.studentResidenceV = studentResidenceV;
	}

	public String getStudentNativePlace() {
		return studentNativePlace;
	}

	public void setStudentNativePlace(String studentNativePlace) {
		this.studentNativePlace = studentNativePlace;
	}

	public String getStudentLocal() {
		return studentLocal;
	}

	public void setStudentLocal(String studentLocal) {
		this.studentLocal = studentLocal;
	}

	public Float getOwnPay() {
		return ownPay;
	}

	public void setOwnPay(Float ownPay) {
		this.ownPay = ownPay;
	}

	public String getNeedToPay() {
		return needToPay;
	}

	public void setNeedToPay(String needToPay) {
		this.needToPay = needToPay;
	}

	@Override
	public String toString() {
		StringBuffer s = new StringBuffer();
		s.append("{student_id_:" + studentId);
		s.append(",company_id:" + companyId);
		s.append(",office_id_:" + officeId);
		s.append(",accout_id_:" + accoutId);
		s.append(",student_name_:" + studentName);
		s.append(",student_sex_:" + studentSex);
		s.append(",student_certificate_type_:" + studentCertificateType);
		s.append(",student_certificate_number_:" + studentCertificateNumber);
		s.append(",student_birthday_:" + studentBirthday);
		s.append(",student_nationality_:" + studentNationality);
		s.append(",student_consult_date_:" + studentConsultDate);
		s.append(",student_file_id_:" + studentFileId);
		s.append(",student_email_:" + studentEmail);
		s.append(",student_address_:" + studentAddress);
		s.append(",student_contact_address_:" + studentContactAddress);		
		s.append(",student_tel_:" + studentTel);
		s.append(",student_phone_:" + studentPhone);
		s.append(",student_zip_:" + studentZip);
		s.append(",student_apply_type:" + studentApplyType);
		s.append(",student_apply_drive_type_:" + studentApplyDriveType);
		s.append(",student_apply_date_:" + studentApplyDate);
		s.append(",student_drive_now_number_:" + studentDriveNowNumber);
		s.append(",student_drive_type_now_:" + studentDriveTypeNow);
		s.append(",data_stutas_:" + dataStutas);
		s.append(",studuent_note_:" + studuentNote);
		s.append(",create_user_:" + createUser);
		s.append(",create_time_:" + createTime);
		s.append(",last_modify_user:" + lastModifyUser);
		s.append(",last_modify_time_:" + lastModifyTime);
		s.append(",student_entrance_fee_:" + studentEntranceFee);
		s.append(",student_native_place_:" + studentNativePlace);
		s.append(",student_local_:" + studentLocal);
		s.append(",need_to_pay_:" + needToPay);
		s.append(",stduent_serial_num_:" + stduentSerialNum+"}");
		return s.toString();		
		
	}

}